/* ====================================================== 
    <!-- Helper Classes -->              
/* ====================================================== */

/*
 * 1. Content Block                     
 * 2. Elements after a floating element will flow around it.
 * 3. Shadow Effect
 * 4. Smooth Transition Effect
 * 5. Element Floating
 * 6. Element Alignment
 * 7. Truncate String with Ellipsis
 * 8. Vertically or Horizontally Aligned Blocks
 * 9. Specifies Whether To Clip Content
 * 10. Specifies a Default Height
 * 11. Hidden The Element on Mobile or Desktop Device
 * 12. Tip Bubble
 * 13. Image Hover Overlay Effects
 * 14. Position
 * 15. Element Hidden Style
 * 16. Border Radius
 * 17. Align Wide and Full Classes For Elements
 * 18. HTML Disclosure Summary element 
*/



/* 
 ---------------------------
 1. Content Block
 ---------------------------
 */ 
 .poemkit-relative {
    position: relative;
	
}

.poemkit-relative--inline {
	display: inline-block;
	position: relative;
	
	/* Prevent content overflow */
	max-width: 100%;
	
	/* Behave like most inline-block elements */
	vertical-align: middle;
	
	/*
	 * Force hardware acceleration without creating a new stacking context
	 *    to fix 1px glitch when combined with overlays and transitions in Webkit
	 */
	-webkit-backface-visibility: hidden;
	

}

/* Clip child elements */
.poemkit-relative--inline-clip {
  overflow: hidden;
}


/*----*/
.poemkit-display-none {
    display: none !important;
}

.poemkit-display-inline {
    display: inline !important;
}

.poemkit-display-inline-block {
    display: inline-block !important;
}

.poemkit-display-block {
    display: block !important;
}

.poemkit-display-flex {
    display: flex !important;
}

.poemkit-display-inline-flex {
    display: inline-flex !important;
}

/* The breakpoint is the same as bootstrap 5 */
/*
--breakpoint-xs:0;
--breakpoint-sm:576px;
--breakpoint-md:768px;
--breakpoint-lg:992px;
--breakpoint-xl:1200px;
--breakpoint-xxl:1400px;
*/
@media all and (max-width: 576px) {
    .poemkit-display-none--sm  {
        display: none !important;
    }
    
    .poemkit-display-inline--sm  {
        display: inline !important;
    }
    
    .poemkit-display-inline-block--sm  {
        display: inline-block !important;
    }
    
    .poemkit-display-block--sm  {
        display: block !important;
    }
    
    .poemkit-display-flex--sm  {
        display: flex !important;
    }
    
    .poemkit-display-inline-flex--sm  {
        display: inline-flex !important;
    }
}

@media all and (max-width: 768px) {
    .poemkit-display-none--md  {
        display: none !important;
    }
    
    .poemkit-display-inline--md  {
        display: inline !important;
    }
    
    .poemkit-display-inline-block--md  {
        display: inline-block !important;
    }
    
    .poemkit-display-block--md  {
        display: block !important;
    }
    
    .poemkit-display-flex--md  {
        display: flex !important;
    }
    
    .poemkit-display-inline-flex--md  {
        display: inline-flex !important;
    }
}

@media all and (max-width: 992px) {
    .poemkit-display-none--lg  {
        display: none !important;
    }
    
    .poemkit-display-inline--lg  {
        display: inline !important;
    }
    
    .poemkit-display-inline-block--lg  {
        display: inline-block !important;
    }
    
    .poemkit-display-block--lg  {
        display: block !important;
    }
    
    .poemkit-display-flex--lg  {
        display: flex !important;
    }
    
    .poemkit-display-inline-flex--lg  {
        display: inline-flex !important;
    }
}


@media all and (max-width: 1200px) {
    .poemkit-display-none--xl  {
        display: none !important;
    }
    
    .poemkit-display-inline--xl  {
        display: inline !important;
    }
    
    .poemkit-display-inline-block--xl  {
        display: inline-block !important;
    }
    
    .poemkit-display-block--xl  {
        display: block !important;
    }
    
    .poemkit-display-flex--xl  {
        display: flex !important;
    }
    
    .poemkit-display-inline-flex--xl  {
        display: inline-flex !important;
    }
}

@media all and (max-width: 1400px) {
    .poemkit-display-none--xxl  {
        display: none !important;
    }
    
    .poemkit-display-inline--xxl  {
        display: inline !important;
    }
    
    .poemkit-display-inline-block--xxl  {
        display: inline-block !important;
    }
    
    .poemkit-display-block--xxl  {
        display: block !important;
    }
    
    .poemkit-display-flex--xxl  {
        display: flex !important;
    }
    
    .poemkit-display-inline-flex--xxl  {
        display: inline-flex !important;
    }
}


/* 
 ---------------------------
 2. Elements after a floating element will flow around it. 
    Use the "poemkit-clearfix" hack to fix the problem
 ---------------------------
 */ 
.poemkit-clearfix {
	
	&::before {
		display: table;
		content: "";
		line-height: 0;
	}
	
	&::after {
		display: table;
		content: "";
		line-height: 0;
		clear: both;
	}
}


/* 
 ---------------------------
 3. Shadow Effect
 ---------------------------
 */ 
.poemkit-outer-shadow--regular {
    @include outer-shadow( 'regular' );
}

.poemkit-outer-shadow--thick {
    @include outer-shadow( 'thick' );
}

.poemkit-outer-shadow--light {
    @include outer-shadow( 'light' );
}

.poemkit-outer-shadow--highlight {
    @include outer-shadow( 'highlight', $highlight-color1 );
}

.poemkit-none-shadow {
	box-shadow: none !important;
	text-shadow: none !important;
}

/* 
 ---------------------------
 4. Smooth Transition Effect
 ---------------------------
 */ 
.poemkit-trans {
    @include transition-default();

    img, 
	a, 
	i, 
	li, 
	span {
        @include transition-default();
    }
}




/* 
 ---------------------------
 5. Element Floating
 ---------------------------
 */ 
.poemkit-f-l {
    float: left;
}

.poemkit-f-r {
    float: right;
}


/* 
 ---------------------------
 6. Element Alignment
 ---------------------------
 */ 
.poemkit-t-r {
    text-align: right;
}

.poemkit-t-l {
    text-align: left;
}


.poemkit-t-c {
    text-align: center;
}


/* The breakpoint is the same as bootstrap 5 */
/*
--breakpoint-xs:0;
--breakpoint-sm:576px;
--breakpoint-md:768px;
--breakpoint-lg:992px;
--breakpoint-xl:1200px;
--breakpoint-xxl:1400px;
*/
@media all and (max-width: 576px) {
	.poemkit-t-r--sm {
		text-align: right;
	}

	.poemkit-t-l--sm {
		text-align: left;
	}
	.poemkit-t-c--sm {
		text-align: center;
	}
}

@media all and (max-width: 768px) {
	.poemkit-t-r--md {
		text-align: right;
	}

	.poemkit-t-l--md {
		text-align: left;
	}
	.poemkit-t-c--md {
		text-align: center;
	}
}

@media all and (max-width: 992px) {
	.poemkit-t-r--lg {
		text-align: right;
	}

	.poemkit-t-l--lg {
		text-align: left;
	}
	.poemkit-t-c--lg {
		text-align: center;
	}
}


@media all and (max-width: 1200px) {
	.poemkit-t-r--xl {
		text-align: right;
	}

	.poemkit-t-l--xl {
		text-align: left;
	}
	.poemkit-t-c--xl {
		text-align: center;
	}
}

@media all and (max-width: 1400px) {
	.poemkit-t-r--xxl {
		text-align: right;
	}

	.poemkit-t-l--xxl {
		text-align: left;
	}
	.poemkit-t-c--xxl {
		text-align: center;
	}
}


/* 
 ---------------------------
 7. Truncate String with Ellipsis
 ---------------------------
 */ 
.poemkit-t-ellipsis {
	@include ellipsis();
}


/* 
 ---------------------------
 8. Vertically or Horizontally Aligned Blocks
 ---------------------------
 */ 

/*-- Using transform property --*/
.poemkit-v-align--absolute,
.poemkit-v-align--relative {
    position: absolute;
    z-index: 6;
    width: 100%;
	/* Vertical Center */
	top: 50%;
	transform: translateY(-50%);
	
	/* Vertical Bottom */
	&.poemkit-v-align--absolute--b {
		top: auto;
		bottom: 0;
		transform: translateY(0);	
	}

	/* Vertical Top */
	&.poemkit-v-align--absolute--t {
		top: 0;
		transform: translateY(0);	
	}	
}

.poemkit-v-align--relative {
    position: relative;
}


@media all and (max-width: 768px) {
	.poemkit-v-align--relative {
		top: 0;
		transform: none;
	}
}

/*-- Using table --*/
.poemkit-v-align--table {
	display: table;
	width: 100%;
	height: 100%;
	> div {
		display: table-cell;
		vertical-align: middle;
	}
	
	/* Vertical Bottom */
	&.poemkit-v-align--table--b > div {
		vertical-align: bottom;
	}

	/* Vertical Top */
	&.poemkit-v-align--table--t > div {
		vertical-align: top;
	}	
	
}


/* 
 ---------------------------
 9. Specifies Whether To Clip Content
 ---------------------------
 */ 
.poemkit-hidden-scrollbar-x {
    overflow-x: hidden;
}

.poemkit-hidden-scrollbar {
    overflow: hidden;
}



/* 
 ---------------------------
 10. Specifies a Default Height
 ---------------------------
 */ 
.poemkit-height--10 {
    height: 10vh !important;
}

.poemkit-height--20 {
    height: 20vh !important;
}

.poemkit-height--30 {
    height: 30vh !important;
}

.poemkit-height--40 {
    height: 40vh !important;
}

.poemkit-height--50 {
    height: 50vh !important;
}

.poemkit-height--60 {
    height: 60vh !important;
}

.poemkit-height--70 {
    height: 70vh !important;
}

.poemkit-height--80 {
    height: 80vh !important;
}

.poemkit-height--90 {
    height: 90vh !important;
}

.poemkit-height--100 {
    height: 100vh !important;
}

@media all and (max-width: 768px) {
	.poemkit-height--100:not(.is-mobile-still), 
	.poemkit-height--90:not(.is-mobile-still), 
	.poemkit-height--80:not(.is-mobile-still), 
	.poemkit-height--70:not(.is-mobile-still), 
	.poemkit-height--60:not(.is-mobile-still), 
	.poemkit-height--50:not(.is-mobile-still), 
	.poemkit-height--40:not(.is-mobile-still), 
	.poemkit-height--30:not(.is-mobile-still), 
	.poemkit-height--20:not(.is-mobile-still), 
	.poemkit-height--10:not(.is-mobile-still) {
	    height: auto !important;
		
	}
}



/* 
 ---------------------------
 11. Hidden The Element on Mobile or Desktop Device
 ---------------------------
 */ 
@media all and (max-width: 768px) {
    .poemkit-hide-mobile {
        display: none !important;
    }
}


@media all and (min-width: 769px) {
    .poemkit-hide-pc {
        display: none !important;
    }
}



/* 
 ---------------------------
 12. Tip Bubble
 ---------------------------
 */ 
.poemkit-bubble {
	font-weight: 100;
	text-transform: uppercase;
	font-weight: 700;
	line-height: 1.2;
	background: $highlight-color1;
	border-radius: 10px;
	padding: .1rem .3rem !important;
	margin-left: .5rem;
	font-size: 0.625rem;
	vertical-align: middle;
	color: #fff !important;
	position: absolute;
	right: 2.3rem;
	top: .5rem;
	transform: scale(.7);
}

@media all and (max-width: 768px) {
	.poemkit-bubble {
		right: 1rem;
		top: .7rem;
	}

}

/* 
 ---------------------------
 13. Image Hover Overlay Effects
 ---------------------------
 */ 
img.poemkit-filter-hover--color,
.poemkit-filter-hover--color img {
	transition: filter .3s cubic-bezier(.445,.05,.55,.95);
    will-change: filter;
	
	&:hover {
		filter: brightness(120%) hue-rotate(45deg);
	}
}



/* 
 ---------------------------
 14. Position
 ---------------------------
 */ 
/*--- Directions --- */
[class*='poemkit-dir--top'],
[class*='poemkit-dir--bottom'],
[class*='poemkit-dir--left'],
[class*='poemkit-dir--right'],
[class*='poemkit-dir--center'] {
    position: absolute !important;
}


/* Don't use `width: 100%` because it is wrong if the parent has padding. */
.poemkit-dir--top {
	top: 0 !important;
    bottom: auto !important;
	left: 0 !important;
	right: 0 !important;
}
.poemkit-dir--bottom {
    top: auto !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
}
.poemkit-dir--left {
	top: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
    right: auto !important;
}
.poemkit-dir--right {
	top: 0 !important;
	bottom: 0 !important;
    left: auto !important;
	right: 0 !important;
}

.poemkit-dir--top-left {
	top: 0 !important;
    bottom: auto !important;
	left: 0 !important;
    right: auto !important;
}
.poemkit-dir--top-right {
	top: 0 !important;
    bottom: auto !important;
    left: auto !important;
	right: 0 !important;
}
.poemkit-dir--bottom-left {
    top: auto !important;
	bottom: 0 !important;
	left: 0 !important;
    right: auto !important;
}
.poemkit-dir--bottom-right {
    top: auto !important;
	bottom: 0 !important;
    left: auto !important;
	right: 0 !important;
}


/* 
 ---------------------------
 15. Element Hidden Style
 ---------------------------
 */ 
.poemkit-el--transparent {
	opacity: 0;
}
.poemkit-el--scale {
	transform: scale(0);
}
.poemkit-el--skew {
    transform: skew(0deg, -5deg);	
}

/* 
 ---------------------------
  16. Border Radius
 ---------------------------
 */ 
.poemkit-border--rounded {
	
	border-radius: 4px;
	
	&.poemkit-border--rounded-img {
		> img {
			border-radius: 4px;
		}		
	}
	
	&.poemkit-border--rounded-only-img {
		border-radius: 0;
		> img {
			border-radius: 4px;
		}		
	}	
	

}

.poemkit-border--circle {
	border-radius: 50%;
	
	&.poemkit-border--circle-img {
		> img {
			border-radius: 50%;
		}		
	}
	
	&.poemkit-border--circle-only-img {
		border-radius: 0;
		> img {
			border-radius: 50%;
		}		
	}	
}



/* 
 ---------------------------
 17. Align Wide and Full Classes For Elements
 ---------------------------
 */ 
img.poemkit-alignfull,
.poemkit-alignfull img {
	margin-left: calc( -100vw / 2 + 100% / 2 );
	margin-right: calc( -100vw / 2 + 100% / 2 );
	max-width: 100vw;
	width: 100vw !important;
	height: auto;
}


/* 
 ---------------------------
 18. HTML Disclosure Summary element 
 ---------------------------
 */ 
details.poemkit-details-reset {
    &:not([open]) > *:not(summary){
        display: none !important;
    }
    
    > summary {
        cursor:pointer;
        list-style:none;
        &::before{
            display:none;
        }
        &::-webkit-details-marker{
            display:none;
        }  
    }
   
}
